package com.beamfield.dao.sys;

import com.beamfield.model.Reeducation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
@Component
public interface ReeducationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Reeducation record);

    int insertSelective(Reeducation record);

    Reeducation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Reeducation record);

    int updateByPrimaryKey(Reeducation record);
    List<Reeducation> readReeducationData(@Param("beamId") long beamId,
                                          @Param("offset") String offset,
                                          @Param("limit") String limit,
                                          @Param("ecode") String ecode);

    long countReeducationData(@Param("beamId") long beamId,@Param("ecode") String ecode);

    List<Reeducation> readAllReeducationData(@Param("beamId") long beamId,
                                             @Param("offset") String offset,
                                             @Param("limit") String limit,
                                             @Param("name") String name,
                                             @Param("workdept") String workdept,@Param("eduContent") String edu_content, @Param("eduDate") String eduDate);

    long countAllReeducationData(@Param("beamId") long beamId, @Param("name") String name, @Param("workdept") String workdept,@Param("eduContent") String edu_content,@Param("eduDate") String eduDate);

    int updateBeamIdByEcode(@Param("ecode") String ecode, @Param("beamId") String acBemaId);
}